package com.duobaoyu.dby.supply.common.biz.dto.config;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName BloomFilterDTO
 * @Description 布隆过滤器初始化DTO
 * @createTime 19:23:00 2022/08/09
 */
@Data
public class BloomFilterDTO implements Serializable {

	/**
	 * 字典项ID
	 */
	@NotNull(message = "字典项ID不能为空")
	private Long dictionaryItemId;
	/**
	 * 容量
	 */
	@Min(message = "容量参数有误",value = 0)
	@NotNull(message = "容量不能为空")
	private Long expectedInsertions;
	/**
	 * 误判率
	 */
	@Min(message = "误判率参数有误",value = 0)
	@NotNull(message = "误判率不能为空")
	private Double falseProbability;
}
